function v = get_value(coef, k, n)
%GET_VALUE decode value in Matrix Encoding 
    u = pow2(0:k-1);
    v = zeros(1,k);

    rc = mod(round(coef),2);
    for i = 1:n
        if rc(i) ~= 0
            val = (bitand(u,i) > 0);
            v = v + val;
        end
    end
    v = mod(v',2);
end

